package com.study.happystudy.service;

import com.study.happystudy.po.ExamPaper;
import com.study.happystudy.po.Question;

import java.util.List;

public interface ExamPaperService {

    // 添加试卷
    void addExamPaper(String createDate, String endTime, int examPaperId, String examType, int grade, String name, String startTime, int subjectId, int totalScore, int userId);

    // 删除试卷
    void removeExamPaperById(int examPaperId);

    // 根据id返回试卷
    ExamPaper getExamPaperById(int examPaperId);

    // 修改试卷
    void updateExamPaper(int examPaperId, String name, String examType, int grade, int subjectId, int totalScore, String startTime, String endTime);

    // 查询试卷(根据年级，科目id)
    List<ExamPaper> findExamPapersByGradeAndSubject(int grade, int subjectId);

    // 给学生发布试卷
    void assignExamPaperToStudent(int studentId, int examPaperId);

    // 展示题目(根据题目顺序排序)
    List<Question> listQuestionsByExamPaperId(int examPaperId);
}
